﻿namespace Sidvall.Data
{
    public class TableItemCollection : System.Collections.ObjectModel.Collection<TableItem>
    {
        #region Public Members

        #region Add

        public TableItem Add(string name, long? rowCount)
        {
            var item = new TableItem()
            {
                Name = name,
                RowCount = rowCount,
            };
            Add(item);
            return item;
        }

        #endregion

        #endregion
        #region Constructors

        public TableItemCollection()
        {
        }

        #endregion
    }
}
